import request from '@/utils/request'

/**
 * 请求上传阿里云VOD授权
 * @param {*} data 
 */
export function uploadAuth(data) {
    return request({
        url: '/aliyun/vod/upload-auth',
        method: 'post',
        data
    })
}

/**
 * 刷新请求上传
 * @param {视频id} videoId 
 */
export function refreshUploadVideo(videoId) {
    return request({
        url: '/aliyun/vod/refresh-upload-video',
        method: 'post',
        data: { 'videoId': videoId }
    })
}

/**
 * 获取转码模板
 */
export function listTemplateGroup() {
    return request({
        url: '/aliyun/vod/list-template-group',
        method: 'get'
    })
}